<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.lmpop.trade.ti_user.Ti_userInfo" %>
<%@ page import="com.lmpop.frame.util.PropertiesConfigUtil"%> 
<%
		
		request.setCharacterEncoding("UTF-8");

		String comm_user_id = "";
			if( session.getAttribute("session_user_id") != null ){
				comm_user_id = session.getAttribute("session_user_id").toString().trim();
			}
        
		Ti_userInfo ti_userinfo = new Ti_userInfo();
		List list = ti_userinfo.getComCodeByUserID(comm_user_id);
  	    Hashtable map = new Hashtable();
  	    if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
		String comm_code="",comm_cust_id="";
  	    if(map.get("comm_code")!=null) comm_code = map.get("comm_code").toString();
	    if(map.get("reg_cust_id")!=null) comm_cust_id = map.get("reg_cust_id").toString();
%>
<%
	String configName = "config.properties";
	PropertiesConfigUtil baseConfig = new PropertiesConfigUtil(configName);
	String baseurl = baseConfig.getProperty("weburl");
%>
<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>邀请有奖</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link rel="icon" href="/favicon.ico?v=3" type="image/x-icon" />
    <link rel="shortcut icon" href="/favicon.ico?v=3" type="image/x-icon" />
    <meta name="application-name" content="雷鸣－每天团购一次，精品生活" />
    <meta name="msapplication-navbutton-color" content="#C3E9F6"/> 
    <meta name="msapplication-window" content="width=device-width;height=device-height" />
    <meta name="msapplication-tooltip" content="雷鸣展示，每天团购一次精致生活。" />
    <meta name="msapplication-task" content="name=今日团购;action-uri=/;icon-uri=/favicon.ico?v=3"/>
    <!--[if IE 6]>
    <script src="http://s0.meituan.net/js/DD_belatedPNG_0.0.8a.js?v=b4e86b02"></script>
    <script> DD_belatedPNG.fix('.pngfix'); </script>
    <![endif]-->

<!--	<link  href="/templets/html/css/bottom.css" rel="stylesheet" />
   <link href="/templets/html/css/c.css" rel="stylesheet"/> 
    <link href="/templets/html/css/yaoqing.css" rel="stylesheet"/>--> 
<link rel="stylesheet" rev="stylesheet" href="/templets/html/b2c/css/yaoqing.css" type="text/css" />

<script type="text/javascript">
      function copy(){
      var ss = document.getElementById("share-copy-text").value;
      copyToClipboard(ss);
       }
      function copyToClipboard(txt) {
      if(window.clipboardData) {
              window.clipboardData.clearData();
              window.clipboardData.setData("Text", txt);
              alert("复制成功！");
      } else if(navigator.userAgent.indexOf("Opera") != -1) {
           window.location = txt;
      } else if (window.netscape) {
           try {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
           } catch (e) {
                alert("被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'");
           }
           var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
           if (!clip)
                return;
           var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
           if (!trans)
                return;
           trans.addDataFlavor('text/unicode');
           var str = new Object();
           var len = new Object();
           var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
           var copytext = txt;
           str.data = copytext;
           trans.setTransferData("text/unicode",str,copytext.length*2);
           var clipid = Components.interfaces.nsIClipboard;
           if (!clip)
                return false;
           clip.setData(trans,null,clipid.kGlobalClipboard);
           alert("复制成功");
      }
}
</script>
 </head>
<body>



<div id="doc">
  <div id="bdw" class="bdw">
        <div id="bd" class="cf">
<div id="referrals">
    <div id="content" class="refers">
        <div class="mainbox">
            <h2>邀请有奖</h2>
                        <p class="intro">好友接受邀请注册并完成首次购买后，您将在1个工作日内获赠10元返利，团购结束7天后可直接用于支付。</p>
                        <div class="share-list">
                <div class="blk im">
                    <div class="logo"><img src="/templets/html/images/logo_qq.gif" /></div>
                    <div class="info">
                        <h4>这是您的专用邀请链接，请通过 QQ 或 MSN 发送给好友：</h4>
                                                <textarea id="share-copy-text" class="f-textarea" onFocus="this.select()" ><%=baseurl%>/register.html?cd=<%=comm_code%></textarea>
                        <input id="share-copy-button" type="button" value="复制" class="formbutton" onclick ="copy()"/>
                    </div>
                </div>
                <div class="blk">
                    <div class="logo"><img src="/templets/html/images/logo_share.gif" /></div>
                    <div class="info">
                                                        <div id="deal-share" class="nodeal"><div class="deal-share-links"><h4>分享到：</h4>
														<ul class="cf">
															<li><a galabel="referrals" class="sina" href="http://v.t.sina.com.cn/share/share.php?url=我最近在雷鸣团购网上团了很多东西，都是高品质，大折扣。你也来试试吧！  http://framedev.lmpop.com:8081/data/b2c/teambuy.html/}" target="_blank">新浪微博</a></li>

															<li><a galabel="referrals" class="qq" href="http://v.t.qq.com/share/share.php?url=我最近雷鸣团购网上团了很多东西，都是高品质，大折扣。你也来试试吧！  http://framedev.lmpop.com:8081/data/b2c/teambuy.html" target="_blank">腾讯微博</a></li>

															<li><a gaevent="ShareLinks|Click|/ShareLinks/Email" galabel="referrals" class="email" href="mailto:?subject=我最近在雷鸣团购网上团了很多东西，都是高品质，大折扣。你也来试试吧！  http://framedev.lmpop.com:8081/data/b2c/teambuy.html" id="deal-buy-mailto">邮件</a></li>
														</ul></div></div>                                            </div>
                </div>
                

                <div class="clear"></div>
            </div>
          </div>
    </div>

</div>
    </div>
	 <!-- bd end -->
</div> 
<!-- bdw end -->
</div> 
<!-- doc end -->





</body>
</html>
